// 停车区域相关的接口函数
import request from '@/utils/request'

export function getAreaListAPI(obj){
    return request({
        url:'/parking/area/list',
        method:'GET',
        params:obj
    })
}

export function delAreaAPI(id){
    return request({
        url:'/parking/area/'+id,
        method:'DELETE'
    })
}

export function addAreaAPI(obj){
    return request({
        url:'/parking/area',
        method:'POST',
        data:obj
    })
}

export function getDropListAPI() {
    return request({
        url: '/parking/rule/dropList',
        method: 'GET'
    })
}


export function editAreaAPI(obj){
    return request({
        url:'/parking/area',
        method:'PUT',
        data:obj
    })
}
